<?php
if($friend_detail->num_rows()>0){
    $fri = $friend_detail->row();
}
?>
<?php
                $image_ava = './doggy_avatar/images/' . $fri->avatar;
                if(file_exists($image_ava) && $fri->avatar!=null){
                    $image_ava = base_url() . 'doggy_avatar/images/' . $fri->avatar;
                } else{
                    $image_ava = root_url('doggy_flirt'). 'assets/noimage.gif';
            }?>
<div id="nouveaux_membres">
<div class="titre_home" style="text-transform: uppercase;">Ajouter à mes amis</div>
        <?php echo form_open('friend/request');?>
        <table>
            <tr>
                <td width="100px"><img src="<?php echo $image_ava;?>" width="80" height="60"/></td>
                 <td><input type="submit" style="cursor: pointer;" value="Envoyer la demande" name="submit" /></td>
            </tr>
        </table>



<input type="hidden" value="<?php echo $fri->id?>" name="friend_id"/>

<?php echo form_close();?>
    </div>
